<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <title>乐淘商品详情界面</title>
    <link rel="shortcu icon" href="favicon.ico">
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/product.css">
</head>

<body>
    <header class="lt_header">
        <h4>
            <a class="lt_h_left" href="javascript:history.back();">
                <span class="fa fa-arrow-left"></span>
            </a>
            商品详情
            <a class="lt_h_right" href="/mobile/index.html">
                <span class="fa fa-home"></span>
            </a>
        </h4>
    </header>
    <div class="lt_container">
        <!--下拉刷新容器-->
        <div id="refreshContainer" class="mui-content mui-scroll-wrapper">
            <div class="mui-scroll"></div>
        </div>
    </div>
    <footer class="lt_footer_tool">
        <a class="cart_icon" href="/mobile/cart.html">
            <span class="fa fa-cart-plus"></span>
        </a>
        <div class="ft_tool mui-clearfix">
            <button type="button" class="addCartBtn mui-btn mui-btn-danger mui-pull-left">购物车</button>
            <button type="button" class="buyNowBtn mui-btn mui-btn-warning mui-pull-right">立即购买</button>
        </div>
    </footer>
</body>

</html>
<script type="text/html" id="mainTpl">
<!-- 轮播图 -->
    <div class="pro_carousel">
        <div class="mui-slider">
            <div class="mui-slider-group mui-slider-loop">
                <!--支持循环，需要重复图片节点-->
                <div class="mui-slider-item mui-slider-item-duplicate">
                    <a href="#">
                        <img src="{{pic[pic.length-1].picAddr}}" />
                    </a>
                </div>
                {{each pic as imgItem}}
                <div class="mui-slider-item"> <a href="#"> <img src="{{imgItem.picAddr}}" /> </a> </div>
                {{/each}}
                <!--支持循环，需要重复图片节点-->
                <div class="mui-slider-item mui-slider-item-duplicate">
                    <a href="#">
                        <img src="{{pic[0].picAddr}}" />
                    </a>
                </div>
            </div>
            <div class="mui-slider-indicator">
                {{each pic as liItem index}}
                {{if index==0}}
                <div class="mui-indicator mui-active"></div>
                {{/if}}
                {{if index!=0}}
                <div class="mui-indicator"></div>
                {{/if}}
                {{/each}}
            </div>
        </div>
    </div>
    <!-- 产品信息 -->
    <div class="pro_info">
        {{proName}}
    </div>
    <!-- 产品价格 -->
    <div class="pro_price">
        价格:
        <span class="new_price">&nbsp;¥{{price}}</span>
        <span class="old_price">&nbsp;¥{{oldPrice}}</span>
    </div>
    <!-- 尺码 -->
    <div class="pro_size">
        尺码:
        {{each sizeArr as size}}
        <span>{{size}}</span>
        {{/each}}
    </div>
    <!-- 数量 -->
    <div class="pro_num">
        数量:
        <div class="mui-numbox" data-numbox-min='0' data-numbox-max='{{num}}'>
            <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
            <input class="mui-numbox-input" type="number" />
            <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
        </div>
        &nbsp;剩余:{{num}}件
    </div>
</script>
<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/zepto/zepto.min.js"></script>
<script src="./assets/artTemplate/template.js"></script>
<script src="./js/common.js"></script>
<script src="./js/product.js"></script>